package com.by.token;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 验证结果
 */

public class ValidResult {

    int code; //验证的状态码 1  token无效 2 token过期  3 token有效

    String msg;

    Map payload;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map getPayload() {
        return payload;
    }

    public void setPayload(Map payload) {
        this.payload = payload;
    }

    public ValidResult(int code, String msg, Map payload) {
        this.code = code;
        this.msg = msg;
        this.payload = payload;
    }

    public ValidResult() {
    }
}
